import request from "@/utils/request";

/**获取目录列表 */
export const getDirectory = (data) => {
  return request({
    url: "/wb/wbClassify/list",
    method: "get",
    data,
  });
};

/**新增目录列表 */
export const addDirectory = (data) => {
  return request({
    url: "/wb/wbClassify",
    method: "post",
    data,
  });
};

/**修改目录列表 */
export const updataDirectory = (data) => {
  return request({
    url: "/wb/wbClassify",
    method: "put",
    data,
  });
};

/**删除目录列表 */
export const deleteDirectory = (data) => {
  return request({
    url: "/wb/wbClassify",
    method: "delete",
    data,
  });
};
